// Gtk+-specific icon definition
// Copyright 2006 (C) Ralph Thomas

#ifndef MISSION_TOOLKIT_GTK_ICON_H
#define MISSION_TOOLKIT_GTK_ICON_H

#include <toolkit/icon.h>
#include <string>
#include <boost/shared_ptr.hpp>
#include <gtk/os_utilities.hpp>

namespace toolkit {
	class icon_gtk {
		std::string	icon_name_m;
		GdkPixbuf*	preview_m;
	  public:
		icon_gtk( const std::string& icon_name, GdkPixbuf* preview = 0 );
		virtual ~icon_gtk();
		GdkPixbuf* get_pixbuf( long pixel_size ) const;
		void apply( GtkImage* image, GtkIconSize size ) const;
	};
	typedef boost::shared_ptr<icon_gtk> icon_gtk_ptr_t;
};

#endif

